package sjms.create.factory.simple;

public class CarSimpleFactory {

    public Car getCar(String name){
        Car car = null;
        if(name.equals("baoma")){
            car = new BaoMa("baomao");
        }else if(name.equals("benzhi")){
            car = new BenChi("benzhi");
        }
        return car;
    }

}
